  <br>
  
  <fieldset style=" width:350px; font-weight: bold;" class="tableMainBodyFont"><legend> <? echo ucwords($_REQUEST['act']) . " ". ucwords($the_table)?></legend>
  <br>
  <table width="100%" border="0" align="center" bgcolor="#eeeeee" class="tableMainBodyFont" id="qua_table">
    
	<? 
	foreach ($fields as $field) {
		$printField = ucwords(ereg_replace("_"," ",$field));
		if (in_array($field, $pkeys))	$readonly = " readonly";
		else $readonly = "";
	   
	?>
    <tr>
      <td width="200" align="right"><strong><?=$printField?></strong></td>
      <td width="10" align="center"><strong>:</strong></td>
      <td><input type="text" name="<?=$field?>" value="<?=$object->$field?>" style=" width:300px;" <?=$readonly?>></td>
    </tr>
    <? } ?>
  </table>
  <br>
  <table width="750" align="center" class="tableMainBodyFont">
    <tr>
      <td align="center"><input name="submit22" type="submit" value="Save"  class="button"/>
          <input name="button2" type="button" onclick="history.back();" value="Cancel"  class="button"/>
      </td>
    </tr>
  </table>
  <br>
  </fieldset>

<p/>
